import request from '@/utils/request'
/** 定位卡数据接口 */
// 获取定位卡数据列表
export function listCard(data) {
    return request({
      url: '/screen/device/page',
      method: 'post',
      data: data
    }) 
}
// 新增定位卡
export function addCard(data) {
    return request({
      url: '/screen/device',
      method: 'post',
      data: data
    })
  }  

  // 删除定位卡
export function deleteCard(deviceId) {
    return request({
      url: '/screen/device/'+deviceId,
      method: 'delete',      
    })
  } 
  // 修改定位卡
export function updateCard(data) {
    return request({
      url: '/screen/device',
      method: 'put',
      data: data
    })
  }
  // 查询定位卡
export function getCard(deviceId) {
    return request({
      url: '/screen/device/' + deviceId,
      method: 'get'
    })
  } 